package Y2024.M10.D31;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-10-31
 * Time: 20:54
 */
public class CardGameApp {
    public static void main(String[] args) {
        Card hero=new HeroCard(9999,9999,1,"伊耶那岐-大神");
        Card magic=new MagicCard(100,2,"数万箴言");
        Card trap=new TrapCard(false,3,"大崩坏");
        Tomb tomb=new Tomb();
        tomb.add(hero);
        tomb.add(magic);
        tomb.add(trap);
    }
}
class Card{
    int id;
    String name;
    Card(int id,String name){
        this.id=id;
        this.name=name;
    }
}

class HeroCard extends Card{
    int attack;//攻击力
    int defence;//防御值
    HeroCard(int attack,int defence,int id,String name){
        super(id,name);
        this.attack=attack;
        this.defence=defence;
    }
}
class MagicCard extends Card{
    int magicPoint;//使用时的魔法开销
    MagicCard(int magicPoint,int id,String name){
        super(id,name);
        this.magicPoint=magicPoint;
    }
}
class TrapCard extends Card{
    boolean isActive;//是否处于激活状态
    TrapCard(boolean isActive,int id,String name){
        super(id,name);
        this.isActive=isActive;
    }
}
class Tomb{
    //存储所有被移除的卡牌
    List<Card> removedCards=new ArrayList<>();
    //添加被移除的卡牌
    void add(Card card) {
        removedCards.add(card);
    }
}